package net.osweb.crm.modules.sales.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Salescase entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sales_salescase")
public class SalesCase implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6941698357709673521L;
	private Integer id;
	private Integer userid;
	private String productname;
	private String username;
	private String types;
	private String status;
	private String casereason;
	private String relatedto;
	private Timestamp modifyime;
	private Timestamp createtime;
	private String priority;
	private String caseorigin;
	private String subject;
	private String accountname;
	private String potentialname;
	private String reported;
	private String phone;
	private String email;
	private String description;
	private Integer isavailability;
	private String internalcomments;
	private String comment;

	// Constructors

	/** default constructor */
	public SalesCase() {
	}

	/** full constructor */
	public SalesCase(Integer userid, String productname, String username,
			String types, String status, String casereason, String relatedto,
			Timestamp modifyime, Timestamp createtime, String priority,
			String caseorigin, String subject, String accountname,
			String potentialname, String reported, String phone, String email,
			String description, Integer isavailability,
			String internalcomments, String comment) {
		this.userid = userid;
		this.productname = productname;
		this.username = username;
		this.types = types;
		this.status = status;
		this.casereason = casereason;
		this.relatedto = relatedto;
		this.modifyime = modifyime;
		this.createtime = createtime;
		this.priority = priority;
		this.caseorigin = caseorigin;
		this.subject = subject;
		this.accountname = accountname;
		this.potentialname = potentialname;
		this.reported = reported;
		this.phone = phone;
		this.email = email;
		this.description = description;
		this.isavailability = isavailability;
		this.internalcomments = internalcomments;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "productname")
	public String getProductname() {
		return this.productname;
	}

	public void setProductname(String productname) {
		this.productname = productname;
	}

	@Column(name = "username")
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "types")
	public String getTypes() {
		return this.types;
	}

	public void setTypes(String types) {
		this.types = types;
	}

	@Column(name = "status")
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "casereason")
	public String getCasereason() {
		return this.casereason;
	}

	public void setCasereason(String casereason) {
		this.casereason = casereason;
	}

	@Column(name = "relatedto")
	public String getRelatedto() {
		return this.relatedto;
	}

	public void setRelatedto(String relatedto) {
		this.relatedto = relatedto;
	}

	@Column(name = "modifyime", length = 19)
	public Timestamp getModifyime() {
		return this.modifyime;
	}

	public void setModifyime(Timestamp modifyime) {
		this.modifyime = modifyime;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "priority")
	public String getPriority() {
		return this.priority;
	}

	public void setPriority(String priority) {
		this.priority = priority;
	}

	@Column(name = "caseorigin")
	public String getCaseorigin() {
		return this.caseorigin;
	}

	public void setCaseorigin(String caseorigin) {
		this.caseorigin = caseorigin;
	}

	@Column(name = "subject")
	public String getSubject() {
		return this.subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	@Column(name = "accountname")
	public String getAccountname() {
		return this.accountname;
	}

	public void setAccountname(String accountname) {
		this.accountname = accountname;
	}

	@Column(name = "potentialname")
	public String getPotentialname() {
		return this.potentialname;
	}

	public void setPotentialname(String potentialname) {
		this.potentialname = potentialname;
	}

	@Column(name = "reported")
	public String getReported() {
		return this.reported;
	}

	public void setReported(String reported) {
		this.reported = reported;
	}

	@Column(name = "phone")
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "email")
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "description")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

	@Column(name = "internalcomments")
	public String getInternalcomments() {
		return this.internalcomments;
	}

	public void setInternalcomments(String internalcomments) {
		this.internalcomments = internalcomments;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}